package cn.iocoder.yudao.module.biz.controller.admin.contract.receive.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 合同档案-分期收款分页 Request VO")
@Data
public class ReceiveRecordPageReqVO extends PageParam {

    @Schema(description = "合同档案id", example = "2931")
    private Long contractArchiveId;

    @Schema(description = "分期数", example = "21354")
    private Integer instalmentCount;

    @Schema(description = "状态", example = "2")
    private String status;

    @Schema(description = "收款日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] receiveDate;

    @Schema(description = "收款金额")
    private BigDecimal receiveMoney;

    @Schema(description = "发票号")
    private String receiptCode;

    @Schema(description = "已收金额")
    private BigDecimal alreadyReceiveMoney;

    @Schema(description = "对应服务期")
    private String serviceTerm;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "坏账原因", example = "不对")
    private String badDebtReason;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "是否有效", example = "1")
    private String isValid;

}